COM AT^SRMP - Ring melody playback
COM Version 1.0		03.01.05	T. Kleinmann

from attglobals import *

AT^SRMP=?
WAITFOR (1,'^SRMP: (1-20),(0-5)')

AT^SRMP?
WAIT FOR OK

AT^SRMP=1,1
WAIT FOR OK

MESSAGE('Please call mobile on Port1 while mobile plays test ring!')

WAIT FOR RING

USERTEST('Was the test ring switched off and the normal ring used for incoming call indication?')

AT+CHUP
WAIT FOR OK

AT^SRMP=1,1
WAIT FOR OK

WAIT 1000

AT^SRMP
WAIT FOR OK

for i in range (0,5):
	AT^SRMP=1,i
	WAIT FOR OK
	WAIT 5000
	
for j in range (1,20):
	AT^SRMP=j,2
	WAIT FOR OK
	WAIT 1000

	